﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

namespace PowerCreator.LMS.Web
{
    public partial class fraleftMenuNew : PowerCreator.LMS.Web.Base.BasePage
    {
        private const string tb_big_start = "<table id=\"tb1\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" height=\"100%\" border=\"0\"><tr valign=\"top\" ><td  id=\"showid\">";
        private const string tb_end = "</table>";
        private const string tb_mid_start = "<table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\"><tr style=\"CURSOR: hand; font-size:12px;\" onclick=showtb({0})  ><td width=\"160\" height=\"28\" background=\"../images/menu_back.gif\" >&nbsp;&nbsp; <img src=\"../images/{2}\" width=\"18\" height=\"18\" align=\"absmiddle\" />{1}</td></tr>";
        private const string tb_sm_start = "<tr id={0} ><td width=\"160\" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>";
        private const string tr_td_tb = "";
        private const string tr_td_tb_end = "</table></td></tr> ";
        private const string td_tr_end = "</td></tr>";
        private const string tr_const = "<tr><td height=\"23\">&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"../images/menu_dh.gif\" />&nbsp;<a href=\"{0}\" target=\"fraMain\">{1}</a></td></tr>";

        //PowerCreator.LMS.Logic.WebConfig.WebConfigManager webconifgManager = new PowerCreator.LMS.Logic.WebConfig.WebConfigManager();

        protected void Page_Load(object sender, EventArgs e)
        {
            GetMenu();
        }
        private void GetMenu()
        {
            StringBuilder str_Menu = new StringBuilder();
            str_Menu.Append(tb_big_start);

            #region 个人资料
            str_Menu.Append(string.Format(tb_mid_start, 1, "个人资料", "menu_yhgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype1"));

            str_Menu.Append(string.Format(tr_const, "UserInfo/System_Defoult.aspx", "当前管理员信息"));
            str_Menu.Append(string.Format(tr_const, "UserInfo/EditUser.aspx", "修改个人信息"));
            str_Menu.Append(string.Format(tr_const, "UserInfo/EditorPassword.aspx", "修改个人密码"));

            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);

            #endregion

            #region 角色管理
            //if (GetRole(Role.ManagerRole) | GetRole(Role.AddRole))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 2, "角色管理", "menu_jsgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype2"));

            System.Diagnostics.Debug.Write("Append");

            //if (webconifgManager.CheckMenuShow(Role.ManagerRole))
            //{
            //if (GetRole(Role.ManagerRole))
            //{
            str_Menu.Append(string.Format(tr_const, "RoleManager/ManagerRole.aspx", "角色组权限"));
            //}
            //}
            //if (webconifgManager.CheckMenuShow(Role.AddRole))
            //{
            //if (GetRole(Role.AddRole))
            //{
            str_Menu.Append(string.Format(tr_const, "RoleManager/AdminGroupManage.aspx", "管理角色组"));
            //}
            //}

            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            // }

            #endregion

            #region 用户管理
            //if (GetRole(Role.ManagerJob) | GetRole(Role.ManagerDuty) | GetRole(Role.ManagerDepartment) | GetRole(Role.ManagerUserInfo))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 3, "用户管理", "menu_yhgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype3"));
            //if (webconifgManager.CheckMenuShow(Role.ManagerJob))
            //{
            //    if (GetRole(Role.ManagerJob))
            //    {
            str_Menu.Append(string.Format(tr_const, "UserManager/JobManager.aspx", "管理职位"));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.ManagerDuty))
            //{
            //    if (GetRole(Role.ManagerDuty))
            //    {
            str_Menu.Append(string.Format(tr_const, "UserManager/DutyManager.aspx", "管理职称"));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.ManagerDepartment))
            //{
            //    if (GetRole(Role.ManagerDepartment))
            //    {
            str_Menu.Append(string.Format(tr_const, "UserManager/Department.aspx", "管理部门"));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.ManagerUserInfo))
            //{
            //    if (GetRole(Role.ManagerUserInfo))
            //    {
            str_Menu.Append(string.Format(tr_const, "UserManager/TeacherManager.aspx", "管理教师信息"));

            str_Menu.Append(string.Format(tr_const, "UserManager/StudentManager.aspx", "管理学生信息"));
            //    }
            //}
            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            // }

            #endregion

            #region 虚拟目录管理
            //if (GetRole(Role.AddVitrtual) | GetRole(Role.ManagerVirtual))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 4, "虚拟目录管理", "menu_xnmlgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype4"));
            //if (webconifgManager.CheckMenuShow(Role.AddVitrtual))
            //{
            //    if (GetRole(Role.AddVitrtual))
            //    {
            str_Menu.Append(string.Format(tr_const, "VirtualManager/AddVirtual.aspx", "添加虚拟目录"));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.ManagerVirtual))
            //{
            //    if (GetRole(Role.ManagerVirtual))
            //    {
            str_Menu.Append(string.Format(tr_const, "VirtualManager/VirtualManager.aspx", "管理虚拟目录"));
            //    }
            //}

            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            // }

            #endregion

            #region 课程管理
            //if (GetRole(Role.ManagerCourseType) | GetRole(Role.ManagerCourse) | GetRole(Role.ManagerResourceType) | GetRole(Role.ManagerCourseResource))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 5, "课程管理", "menu_kcgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype5"));

            //if (webconifgManager.CheckMenuShow(Role.ManagerCourseType))
            //{
            //    if (GetRole(Role.ManagerCourseType))
            //    {
            str_Menu.Append(string.Format(tr_const, "CourseManager/Catalog.aspx", "管理专业"));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.ManagerCourse))
            //{
            //    if (GetRole(Role.ManagerCourse))
            //    {
            str_Menu.Append(string.Format(tr_const, "CourseManager/Course.aspx", "管理课程"));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.ManagerResourceType))
            //{
            //    if (GetRole(Role.ManagerResourceType))
            //    {
            // str_Menu.Append(string.Format(tr_const, "CourseManager/CourseResourceTypeManager.aspx", "管理资源类别"));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.ManagerCourseResource))
            //{
            //    if (GetRole(Role.ManagerCourseResource))
            //    {
            str_Menu.Append(string.Format(tr_const, "CourseManager/CourseResource.aspx", "管理课程资源"));
            //    }
            //    else
            //    {
            //        //检查该用户是否有专业或是课程管理权限
            //        PowerCreator.LMS.Logic.ActionManager.ManagerResource managerResourceManager = new PowerCreator.LMS.Logic.ActionManager.ManagerResource();
            //        PowerCreator.LMS.Logic.CourseManager.ManagerCourseInfo courseManager = new PowerCreator.LMS.Logic.CourseManager.ManagerCourseInfo();
            //        string search = managerResourceManager.GetManagerCourseSearchByUserID(int.Parse(Session["UserID"].ToString()));
            //        if (courseManager.Count(search) != 0)
            //        {
            //            str_Menu.Append(string.Format(tr_const, "CourseManager/CourseResourceManager.aspx", "管理课程资源"));
            //        }
            //    }
            //}


            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            // }

            #endregion

            #region 培训方案管理
            //if (GetRole(Role.ManagerProjectType) | GetRole(Role.ManagerProject) | GetRole(Role.ManagerPlaning))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 6, "培训方案管理", "menu_pxfagl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype6"));
            //    if (webconifgManager.CheckMenuShow(Role.ManagerProjectType))
            //    {
            //        if (GetRole(Role.ManagerProjectType))
            //        {
            str_Menu.Append(string.Format(tr_const, "ProjectManager/TrainProjectType.aspx", "管理方案类型"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.ManagerProject))
            //    {
            //        if (GetRole(Role.ManagerProject))
            //        {
            str_Menu.Append(string.Format(tr_const, "ProjectManager/Project.aspx", "管理培训方案"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.ManagerPlaning))
            //    {
            //        if (GetRole(Role.ManagerPlaning))
            //        {
            str_Menu.Append(string.Format(tr_const, "ProjectManager/ProjectPlan.aspx", "培训方案监控"));
            //        }
            //    }
            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            //}

            #endregion

            #region 题库管理
            //if (GetRole(Role.ManagerQuestion) | GetRole(Role.AddPaper) | GetRole(Role.ManagerPaper))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 7, "题库管理", "menu_tkgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype7"));
            //    if (webconifgManager.CheckMenuShow(Role.ManagerQuestion))
            //    {
            //        if (GetRole(Role.ManagerQuestion))
            //        {
            str_Menu.Append(string.Format(tr_const, "QuestionManager/ManagerQuestionInfo.aspx", "管理试题"));
            //        }
            //    }
            //    //多媒体试题加动作
            //    if (webconifgManager.CheckMenuShow(Role.ManagerQuestion))
            //    {
            //        if (GetRole(Role.ManagerQuestion))
            //        {
            str_Menu.Append(string.Format(tr_const, "QuestionManager/QuestionResourceList.aspx", "管理试题多媒体资源"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.AddPaper))
            //    {
            //        if (GetRole(Role.AddPaper))
            //        {
            str_Menu.Append(string.Format(tr_const, "QuestionManager/AddPaperInfo.aspx", "添加试卷"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.ManagerPaper))
            //    {
            //        if (GetRole(Role.ManagerPaper))
            //        {
            str_Menu.Append(string.Format(tr_const, "QuestionManager/ManagerPaperInfo.aspx", "管理试卷"));
            //        }
            //    }
            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            //}

            #endregion

            #region 阅卷管理
            //if (GetRole(Role.AuditProject) | GetRole(Role.SearchPaperScore) | GetRole(Role.SearchUserScore))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 8, "阅卷管理", "menu_sjgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype8"));
            //    if (webconifgManager.CheckMenuShow(Role.AuditProject))
            //    {
            //        if (GetRole(Role.AuditProject))
            //        {
            str_Menu.Append(string.Format(tr_const, "PaperManager/ProjectList.aspx", "培训方案批阅"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.SearchPaperScore))
            //    {
            //        if (GetRole(Role.SearchPaperScore))
            //        {
            str_Menu.Append(string.Format(tr_const, "PaperManager/PaperList.aspx", "试卷成绩查询"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.SearchUserScore))
            //    {
            //        if (GetRole(Role.SearchUserScore))
            //        {
            str_Menu.Append(string.Format(tr_const, "PaperManager/UserList.aspx", "用户成绩查询"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.SearchUserScore))
            //    {
            //        if (GetRole(Role.SearchUserScore))
            //        {
            str_Menu.Append(string.Format(tr_const, "PaperManager/TestPaperUserList.aspx", "测试卷批阅"));
            //        }
            //    }


            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            //}

            #endregion

            #region 新闻管理
            //if (GetRole(Role.AddMessage) | GetRole(Role.ManagerMessage) | GetRole(Role.SysteMessage))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 16, "新闻管理", "menu_xxtzgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype16"));

            //    if (webconifgManager.CheckMenuShow(Role.AddMessage))
            //    {
            //        if (GetRole(Role.AddMessage))
            //        {
            str_Menu.Append(string.Format(tr_const, "NewManager/AddNewType.aspx", "添加新闻类别"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.ManagerMessage))
            //    {
            //        if (GetRole(Role.ManagerMessage))
            //        {
            str_Menu.Append(string.Format(tr_const, "NewManager/ManagerNewType.aspx", "管理新闻类别"));
            str_Menu.Append(string.Format(tr_const, "NewManager/AddNew.aspx", "添加新闻"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.SysteMessage))
            //    {
            //        if (GetRole(Role.SysteMessage))
            //        {
            str_Menu.Append(string.Format(tr_const, "NewManager/ManagerNew.aspx", "管理新闻"));
            //        }
            //    }
            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            //}

            #endregion

            #region 消息通知管理
            //if (GetRole(Role.AddMessage) | GetRole(Role.ManagerMessage) | GetRole(Role.SysteMessage))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 9, "消息通知管理", "menu_xxtzgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype9"));

            //    if (webconifgManager.CheckMenuShow(Role.AddMessage))
            //    {
            //        if (GetRole(Role.AddMessage))
            //        {
            str_Menu.Append(string.Format(tr_const, "MessageManager/AddMessage.aspx", "添加消息通知"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.ManagerMessage))
            //    {
            //        if (GetRole(Role.ManagerMessage))
            //        {
            str_Menu.Append(string.Format(tr_const, "MessageManager/ManagerMsg.aspx", "管理消息通知"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.SysteMessage))
            //    {
            //        if (GetRole(Role.SysteMessage))
            //        {
            str_Menu.Append(string.Format(tr_const, "MessageManager/SystemMsg.aspx", "系统通知"));
            //        }
            //    }
            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            //}

            #endregion


            #region 下载资源管理
            //if (GetRole(Role.AddMessage) | GetRole(Role.ManagerMessage) | GetRole(Role.SysteMessage))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 17, "下载资源", "menu_xxtzgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype17"));

            //    if (webconifgManager.CheckMenuShow(Role.AddMessage))
            //    {
            //        if (GetRole(Role.AddMessage))
            //        {
            str_Menu.Append(string.Format(tr_const, "DownManager/AddDownType.aspx", "添加资源类别类别"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.ManagerMessage))
            //    {
            //        if (GetRole(Role.ManagerMessage))
            //        {
            str_Menu.Append(string.Format(tr_const, "DownManager/ManagerDownType.aspx", "管理资源类别"));
            str_Menu.Append(string.Format(tr_const, "DownManager/AddDownload.aspx", "添加下载资源"));
            //        }
            //    }
            //    if (webconifgManager.CheckMenuShow(Role.SysteMessage))
            //    {
            //        if (GetRole(Role.SysteMessage))
            //        {
            str_Menu.Append(string.Format(tr_const, "DownManager/ManagerDownload.aspx", "管理下载资源"));
            //        }
            //    }
            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            //}

            #endregion

            #region 统计查询
            //if (GetRole(Role.CountLogin) | GetRole(Role.CountBrower) | GetRole(Role.CountCourse) | GetRole(Role.CountProject) | GetRole(Role.CountPaper) | GetRole(Role.CountQuestion))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 11, "统计查询", "menu_tjcx.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype11"));
            //if (webconifgManager.CheckMenuShow(Role.CountLogin))
            //{
            //    if (GetRole(Role.CountLogin))
            //    {
            //        str_Menu.Append(string.Format(tr_const, webconifgManager.GetMenuItem(Role.CountLogin).MenuUrl, webconifgManager.GetMenuItem(Role.CountLogin).MenuName));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.CountBrower))
            //{
            //    if (GetRole(Role.CountBrower))
            //    {
            //        str_Menu.Append(string.Format(tr_const, webconifgManager.GetMenuItem(Role.CountBrower).MenuUrl, webconifgManager.GetMenuItem(Role.CountBrower).MenuName));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.CountCourse))
            //{
            //    if (GetRole(Role.CountCourse))
            //    {
            //        str_Menu.Append(string.Format(tr_const, webconifgManager.GetMenuItem(Role.CountCourse).MenuUrl, webconifgManager.GetMenuItem(Role.CountCourse).MenuName));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.CountProject))
            //{
            //    if (GetRole(Role.CountProject))
            //    {
            //        str_Menu.Append(string.Format(tr_const, webconifgManager.GetMenuItem(Role.CountProject).MenuUrl, webconifgManager.GetMenuItem(Role.CountProject).MenuName));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.CountPaper))
            //{
            //    if (GetRole(Role.CountPaper))
            //    {
            //        str_Menu.Append(string.Format(tr_const, webconifgManager.GetMenuItem(Role.CountPaper).MenuUrl, webconifgManager.GetMenuItem(Role.CountPaper).MenuName));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.CountQuestion))
            //{
            //    if (GetRole(Role.CountQuestion))
            //    {
            //        str_Menu.Append(string.Format(tr_const, webconifgManager.GetMenuItem(Role.CountQuestion).MenuUrl, webconifgManager.GetMenuItem(Role.CountQuestion).MenuName));
            //    }
            //}


            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            //}

            #endregion

            #region 系统维护
            //if (GetRole(Role.SystemInfo) | GetRole(Role.LoginIPManager) | GetRole(Role.IPBlack) | GetRole(Role.OnlineUser))
            //{
            str_Menu.Append(string.Format(tb_mid_start, 18, "系统维护", "menu_xxtzgl.gif"));

            str_Menu.Append(string.Format(tb_sm_start, "tbtype18"));
            //if (webconifgManager.CheckMenuShow(Role.SystemInfo))
            //{
            //    if (GetRole(Role.SystemInfo))
            //    {
            //        str_Menu.Append(string.Format(tr_const, webconifgManager.GetMenuItem(Role.SystemInfo).MenuUrl, webconifgManager.GetMenuItem(Role.SystemInfo).MenuName));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.LoginIPManager))
            //{
            //    if (GetRole(Role.LoginIPManager))
            //    {
            //        str_Menu.Append(string.Format(tr_const, webconifgManager.GetMenuItem(Role.LoginIPManager).MenuUrl, webconifgManager.GetMenuItem(Role.LoginIPManager).MenuName));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.IPBlack))
            //{
            //    if (GetRole(Role.IPBlack))
            //    {
            //        str_Menu.Append(string.Format(tr_const, webconifgManager.GetMenuItem(Role.IPBlack).MenuUrl, webconifgManager.GetMenuItem(Role.IPBlack).MenuName));
            //    }
            //}
            //if (webconifgManager.CheckMenuShow(Role.OnlineUser))
            //{
            //    if (GetRole(Role.OnlineUser))
            //    {
            //        str_Menu.Append(string.Format(tr_const, webconifgManager.GetMenuItem(Role.OnlineUser).MenuUrl, webconifgManager.GetMenuItem(Role.OnlineUser).MenuName));
            //    }
            //}

            str_Menu.Append(string.Format(tr_const, "ReferManager/ManagerRefer.aspx", "在线答疑"));
            str_Menu.Append(tr_td_tb_end);


            str_Menu.Append(tr_td_tb_end);
            //}

            #endregion

            #region 课件评论//菜单未加入数据库中，在初始化数据库也需要加入SQL语句

            //if (GetRole(Role.SystemInfo) | GetRole(Role.LoginIPManager) | GetRole(Role.IPBlack) | GetRole(Role.OnlineUser))
            //{
            //str_Menu.Append(string.Format(tb_mid_start, 13, "课件评论管理", "menu_yhgl.gif"));

            //str_Menu.Append(string.Format(tb_sm_start, "tbtype13"));
            ////if (GetRole(Role.SystemInfo))
            ////{
            //    str_Menu.Append(string.Format(tr_const, "CommentManager/CommentManager.aspx", "点评管理"));
            ////}
            //if (GetRole(Role.LoginIPManager))
            //{
            // str_Menu.Append(string.Format(tr_const, "SystemInfo/LoginIPManager.aspx", "后台登录IP"));
            //}
            //if (GetRole(Role.IPBlack))
            //{
            //str_Menu.Append(string.Format(tr_const, "SystemInfo/BlackIPManager.aspx", "IP黑名单"));
            //}
            //if (GetRole(Role.OnlineUser))
            //{
            //str_Menu.Append(string.Format(tr_const, "SystemInfo/OnlineUserManager.aspx", "管理在线用户"));
            //}

            //str_Menu.Append(tr_td_tb_end);


            //str_Menu.Append(tr_td_tb_end);
            //}

            #endregion

            //#region 论坛管理
            //if (GetRole(Role.ManagerModule) | GetRole(Role.ManagerTitleTypeInfo) | GetRole(Role.ManagerTitleInfo))
            //{
            //    str_Menu.Append(string.Format(tb_mid_start, 14, "论坛管理", "menu_yhgl.gif"));

            //    str_Menu.Append(string.Format(tb_sm_start, "tbtype14"));
            //    if (GetRole(Role.ManagerModule))
            //    {
            //        str_Menu.Append(string.Format(tr_const, "BBSManager/ManagerModule.aspx", "管理频道"));
            //    }
            //    if (GetRole(Role.ManagerTitleTypeInfo))
            //    {
            //        str_Menu.Append(string.Format(tr_const, "BBSManager/ManagerTitleTypeInfo.aspx", "管理版块"));
            //    }
            //    if (GetRole(Role.ManagerTitleInfo))
            //    {
            //        str_Menu.Append(string.Format(tr_const, "BBSManager/ManagerTitleInfo.aspx", "管理帖子"));
            //    }


            //    str_Menu.Append(tr_td_tb_end);


            //    str_Menu.Append(tr_td_tb_end);
            //}

            //#endregion

            str_Menu.Append(td_tr_end);

            str_Menu.Append(tb_end);

            lab_Menu.Text = str_Menu.ToString();
        }
    }
}